package com.dogsong.liteflow.editor.component;

import com.dogsong.liteflow.editor.slot.DataContext;
import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Arrays;

@Component("printCmp2")
@Slf4j
public class PrintCmp2 extends NodeComponent {
    @Override
    public void process() throws Exception {
        DataContext context = this.getContextBean(DataContext.class);
        context.getDataMap().put(this.getTag(), Arrays.asList(1,2));
        log.info("printCmp2执行了");
    }
}
